package com.originskyseed.platform.user.mapper;

import java.util.List;
import java.util.Map;

import com.originskyseed.platform.user.model.SalesmanRelateLevelLog;
import org.apache.ibatis.annotations.Param;

import com.originskyseed.platform.user.model.AnchorLevelLog;

/**
 * 主播关联等级调整信息Mapper类（OSI_ANCHOR_LEVEL_LOG）
 *
 * @author wlj
 */
public interface AnchorLevelLogMapper {

	/**
	 * 删除记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKey(String id) throws Exception;

	/**
	 * 批量删除记录
	 *
	 * @param ids
	 * @return
	 * @throws Exception
	 */
	public int deleteByPrimaryKeys(List<String> ids) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insert(AnchorLevelLog record) throws Exception;

	/**
	 * 插入记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int insertSelective(AnchorLevelLog record) throws Exception;

	/**
	 * 插入记录
	 *
	 * @param list
	 * @return
	 * @throws Exception
	 */
	public int insertBatch(List<AnchorLevelLog> list) throws Exception;

	/**
	 * 更新记录
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKey(AnchorLevelLog record) throws Exception;

	/**
	 * 更新记录（仅非空值字段）
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public int updateByPrimaryKeySelective(AnchorLevelLog record) throws Exception;

	/**
	 * 查询记录
	 *
	 * @param id
	 * @return
	 * @throws Exception
	 */
	public AnchorLevelLog selectByPrimaryKey(String id) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param record
	 * @return
	 * @throws Exception
	 */
	public List<AnchorLevelLog> selectList(AnchorLevelLog record) throws Exception;

	/**
	 * 查询列表
	 *
	 * @param nowTime
	 * @return
	 * @throws Exception
	 */
	public List<AnchorLevelLog> selectListByNowTime(@Param("nowTime") String nowTime) throws Exception;

	/**
	 * 分页查询列表
	 *
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<AnchorLevelLog> selectListByPage(Map<String, Object> params) throws Exception;

}
